sending param in _GET causes problems
am 27.08.2007 08:10:52 von Albert
Hello,
I'm generating an image with the GD lib.
As I need to send parameters to the image, this is my code :
$MyText = "this is my text" ;
?>

In this case, there is no pb. I get the param with $_GET['text'] properly
Still, if I send the following text : $MyText = "a + b" ;
I doesn't work anymore... I guess the character '+' is the trouble.
How to do it ? Is it possible to send params via _POST ? How ?
Thanks in advance,
albert
Re: sending param in _GET causes problems
am 27.08.2007 08:24:20 von kork
albert wrote:
> 
>
> In this case, there is no pb. I get the param with $_GET['text'] properly
> Still, if I send the following text : $MyText = "a + b" ;
> I doesn't work anymore... I guess the character '+' is the trouble.
The problem is, that you don't encode the text properly. If you send it
within an URL, you have to urlencode the text so it behaves properly.You
can use the urlencode function for doing this:
; ?>)
Best regards,
Jan Thomä
--
____________________________________________________________ _____________
insOMnia - We never sleep...
http://www.insOMnia-hq.de